package com.oig.sys.workflow.runner;

import com.oig.sys.workflow.flow.IDepFlowService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@RequiredArgsConstructor
public class FlowWsRunner implements ApplicationRunner {

    private final IDepFlowService depFlowService;

    @Override
    public void run(ApplicationArguments args)  {
        depFlowService.startListener();
    }

}
